﻿/*====================================================================
	TASK 4:                                   {Conditional Statements}
	Sort 3 real values in descending order using nested if statements. 
====================================================================*/

using System;

class SortInDescendingOrderThreeIntegers
{
    static void Main()
    {
        Console.Write("Enter a=");
        float a = float.Parse(Console.ReadLine());
        Console.Write("Enter b=");
        float b = float.Parse(Console.ReadLine());
        Console.Write("Enter c=");
        float c = float.Parse(Console.ReadLine());

        if (a > b && b > c)
        {
            Console.WriteLine("{0},{1},{2}", a, b, c);
        }
        else if (a > c && c > b)
        {
            Console.WriteLine("{0},{1},{2}", a, c, b);
        }
        
        if (b > a && a > c)
        {
            Console.WriteLine("{0},{1},{2}", b, a, c);
        }
        else if (b > c && c > a)
        {
            Console.WriteLine("{0},{1},{2}", b, c, a);
        }

        if (c > a && a > b)
        {
            Console.WriteLine("{0},{1},{2}", c, a, b);
        }
        else if (c > b && b > a)
        {
            Console.WriteLine("{0},{1},{2}", c, b, a);
        }
    }
}

